package com.tps.eric.mapper;

import com.tps.eric.service.DynamicQueryProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

@Mapper
public interface DynamicQueryMapper {

    @SelectProvider(type = DynamicQueryProvider.class, method = "queryList")
    List<Map<String, Object>> queryList(@Param("tableName") String tableName, @Param("fields") String fields, @Param("condition") String condition);

}
